package com.ccrfid.rmc6.entity.personnel;

import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 人员生命体征预警配置
 */
@Entity
@Table(name = "personnel_vital_signs_alarm_config")
public class PersonnelVitalSignsAlarmConfigEntity {
    private Long personnelId;
    private String personnelName;
    private Integer minHeartrate;
    private Integer maxHeartrate;
    private Integer minDiastolicPressure;
    private Integer maxDiastolicPressure;
    private Integer minSystolicPressure;
    private Integer maxSystolicPressure;
    private Double minTemperature;
    private Double maxTemperature;
    private Timestamp createTime;
    private Timestamp updateTime;



    @Id
    @Column(name = "personnel_id", nullable = false)
    public Long getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Long personnelId) {
        this.personnelId = personnelId;
    }

    @Basic
    @Column(name = "personnel_name", nullable = true, length = 45)
    public String getPersonnelName() {
        return personnelName;
    }

    public void setPersonnelName(String personnelName) {
        this.personnelName = personnelName;
    }

    @Basic
    @Column(name = "min_heartrate", nullable = true)
    public Integer getMinHeartrate() {
        return minHeartrate;
    }

    public void setMinHeartrate(Integer minHeartrate) {
        this.minHeartrate = minHeartrate;
    }

    @Basic
    @Column(name = "max_heartrate", nullable = true)
    public Integer getMaxHeartrate() {
        return maxHeartrate;
    }

    public void setMaxHeartrate(Integer maxHeartrate) {
        this.maxHeartrate = maxHeartrate;
    }

    @Basic
    @Column(name = "min_diastolic_pressure", nullable = true)
    public Integer getMinDiastolicPressure() {
        return minDiastolicPressure;
    }

    public void setMinDiastolicPressure(Integer minDiastolicPressure) {
        this.minDiastolicPressure = minDiastolicPressure;
    }

    @Basic
    @Column(name = "max_diastolic_pressure", nullable = true)
    public Integer getMaxDiastolicPressure() {
        return maxDiastolicPressure;
    }

    public void setMaxDiastolicPressure(Integer maxDiastolicPressure) {
        this.maxDiastolicPressure = maxDiastolicPressure;
    }

    @Basic
    @Column(name = "min_systolic_pressure", nullable = true)
    public Integer getMinSystolicPressure() {
        return minSystolicPressure;
    }

    public void setMinSystolicPressure(Integer minSystolicPressure) {
        this.minSystolicPressure = minSystolicPressure;
    }

    @Basic
    @Column(name = "max_systolic_pressure", nullable = true)
    public Integer getMaxSystolicPressure() {
        return maxSystolicPressure;
    }

    public void setMaxSystolicPressure(Integer maxSystolicPressure) {
        this.maxSystolicPressure = maxSystolicPressure;
    }

    @Basic
    @Column(name = "min_temperature", nullable = true)
    public Double getMinTemperature() {
        return minTemperature;
    }

    public void setMinTemperature(Double minTemperature) {
        this.minTemperature = minTemperature;
    }

    @Basic
    @Column(name = "max_temperature", nullable = true)
    public Double getMaxTemperature() {
        return maxTemperature;
    }

    public void setMaxTemperature(Double maxTemperature) {
        this.maxTemperature = maxTemperature;
    }

    @Basic
    @Column(name = "create_time" , nullable = false)
    @UpdateTimestamp
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time" , nullable = false)
    @UpdateTimestamp
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }
}
